﻿<script src="../../Scripts/jquery-1.7.1.js" type="text/javascript"></script>
<script src="../../Scripts/knockout-2.2.0.debug.js" type="text/javascript"></script>
<script src="../../Scripts/App/AppNamespaces.js" type="text/javascript"></script>
<script src="../../Scripts/App/Editing/Common.js" type="text/javascript"></script>
<script src="../../Scripts/App/Editing/DoorManufacturesViewModel.js" type="text/javascript"></script>

<table >
    <tr>
        <td>
            <div>
                <p>Производители:</p>
                <select data-bind="options: doorManufacturers, optionsText: 'Name', value: selectedItem" multiple="false"></select>
            </div>
        </td>
        <td>
            <div data-bind="with: selectedItem">                
                <input data-bind="value: Id" />
                <input data-bind='value: Name, valueUpdate: "afterkeydown"' />
            </div>
        </td>
    </tr>
    <tr>
        <td>
            <button type="submit" data-bind='click: addNew'>Add new</button>
            <button data-bind='click: save'>Save selected</button>
            <button data-bind='click: deleteSelected'>Delete selected</button>
        </td>
    </tr>
</table>